package com.scedu;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
//@SpringBootApplication
//@MapperScan("com.scedu.repository")
//public class EmsApplication {
//
//	public static void main(String[] args) {
//		SpringApplication.run(EmsApplication.class, args);
//	}
//
//}
@SpringBootApplication
@MapperScan("com.scedu.repository")
public class EmsApplication extends SpringBootServletInitializer {
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(EmsApplication.class);//指定入口类
	}
	public static void main(String[] args) {
		SpringApplication.run(EmsApplication.class, args);
	}

}
